home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Business Assistant
/
Business Assistant.iso
/
home
/
hb20d1
/
makecopy.bat
< prev
next >
Wrap
DOS Batch File
|
1986-03-19
|
2KB
|
109 lines
rem MAKECOPY.BAT %1=drive let, %2=yes %3=xxx Mar.19,86
echo off
a:
if exist o_dp_$ba.t_$ del o_dp_$ba.t_$
rem if called by itself (not from insflop) skip
if %3/ == xxx/ goto mc5
if not %2/ == xxx/ goto mc10
:mc5
if not %1/ == B:/ goto mc6
echo Sorry, CANNOT copy from Drive %1. Please make a copy of the
echo original disks and start again by typing "a:install %1 %2".
a:insquit xxx
:mc6
echo
The disk in drive A is write protected -- it is probably the original
echo master HomeBase diskette -- so we will now run MAKECOPY for you.
pause
:mc10
cls
echo
MAKECOPY: You will need:
echo 1) The two original (master) disks
echo 2) Two erasable or empty blank diskettes.
echo 3) The standard PC DOS disk with DISKCOPY.COM on it.
ask Do you have all of the above
if errorlevel 2 insquit
cls
echo
The following procedure is complicated so pay attention.
echo Place the DOS disk in drive %1.
ask DOS disk with DISKCOPY.COM in %1
if errorlevel 2 insquit
:latchb
cls
echo
Be Careful now. Follow the instruction DISKCOPY will give. At one point you
echo will take out DOS disk from drive %1 and replace it with the blank
echo disk (target diskette). Do exactly as told. If necessary refer
echo to the DOS manual to learn about DISKCOPY's operation.
echo REMEMBER:
echo HomeBase DISK 1 = "source" (drive A)
echo Empty disk = "target" (drive %1)
echo DOS disk also uses drive %1 when asked for.
echo
When DISKCOPY asks "copy another?", say NO.
%1diskcopy a: %1
:try45
echo
*** DISK 1 copied *** Get ready for DISK 2
ask DOS disk in drive %1
if errorlevel 2 insquit
echo
echo HomeBase DISK 2 = "source" to be put in Drive A.
echo Empty disk #2 = "target" to be put in Drive %1.
echo HomeBase DISK 1 = "batch" now in A, put back when asked for.
echo (The DOS disk shares Drive %1, At the end you will
echo put DISK 1 back in Drive A.)
%1diskcopy a: %1
cls
echo
+ + + COPY Complete + + +
if exist a:o_dp_$ba.t_$ del a:o_dp_$ba.t_$
echo 1) Put the two master HomeBase disks away.
echo 2) Label the copy disks DISK 1 and DISK 2 (like the originals).
echo 3) Place DISK 1 (copy) in Drive A:
if not a%2 == axxx insquit xxx
ask DISK 1 (copy) in A:
if errorlevel 2 insquit
install %1 %2 return